﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/dwsCycleTime/cycleDetail" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="cycleDetailList" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>产品名称：</label>
            <g:select name="cyclePartName" from="${cyclePartNameList}" data-toggle="selectpicker" data-live-search="true" optionKey="CYCLE_PRAT_NAME" optionValue="CYCLE_PRAT_NAME" value="${cyclePartName}" noSelection="['':'--ALL--']" />&nbsp;

            <label>开始日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd HH:mm:ss')}">&nbsp;
            <label>结束日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd HH:mm:ss')}" >&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/dwsCycleTime/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;
        </div>
    </form>
</div>
<div class="bjui-pageContent">


    <div >
                    <table data-toggle="tablefixed" data-nowrap="true">
                        <thead>
                        <tr>
                            <th width="30" align="center">No.</th>
                            <th width="137" align="center">产品名称</th>
                            <th width="158" align="center">组装批号</th>
                            <th width="80" align="center">数量</th>
                            <th width="150" align="center">批次开始时间</th>
                            <th width="150" align="center">批次结束时间</th>
                            <th width="100" align="center">总耗时(小时)</th>
                            <th width="100" align="center">运行时间(小时)</th>
                            <th width="95" align="center">等待时间(小时)</th>
                            <th width="100" align="center">暂停时间(小时)</th>
                            <th width="50" align="center">周记</th>

                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${cycleDetailList}" status="i" var="tableInstance">
                            <tr>
                                <td align="center">${i+1}</td>
                                <td align="center">${tableInstance.part_name}</td>
                                <td  align="center">${tableInstance.lot_id}</td>
                                <td  align="center">${tableInstance.start_main_qty}</td>
                                <td  align="center">${tableInstance.start_time}</td>
                                <td align="center">${tableInstance.end_time}</td>
                                <td  align="center">${tableInstance.ct}</td>
                                <td  align="center">${tableInstance.run}</td>
                                <td  align="center">${tableInstance.wait}</td>
                                <td  align="center">${tableInstance.hold}</td>
                                <td  align="center">${tableInstance.Reserved4}</td>


                            </tr>
                        </g:each>

                        </tbody>
                    </table>


    </div>
</div>
<g:render template="../template/pagination" />
